var express = require('express');
var router = express.Router();
const {
    get
} = require('../servies/orderService')

/* GET home page. */
router.get('/', async function (req, res, next) {
    const {
        page,
        limit,
        status,
        sort
    } = req.query;
    if (!status) {
        status = '';
    }
    const result = await get({
        page,
        limit,
        status,
        sort
    });
    res.send(result)
});

module.exports = router;